
var pluginArr = []
//获取当前开发环境
console.log(process.env.NODE_ENV, 66666)
if (process.env.NODE_ENV == 'production') {
  pluginArr.push('transform-remove-console')//['transform-remove-console']
}

module.exports = {
  presets: [
    '@vue/cli-plugin-babel/preset'
    
  ],
  plugins: [
    ...pluginArr,
    '@babel/plugin-syntax-dynamic-import'
    //process.env.NODE_ENV=='production'?'transform-remove-console':null
  ]
}
